package o;

import com.google.gson.JsonSyntaxException;
import java.io.IOException;
import java.sql.Time;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

public final class aur extends ato<Time> {
    public static final ats ˊ = new ats() {
        public <T> ato<T> ˎ(atb o_atb, auv<T> o_auv_T) {
            return o_auv_T.ˋ() == Time.class ? new aur() : null;
        }
    };
    private final DateFormat ॱ = new SimpleDateFormat("hh:mm:ss a");

    public /* synthetic */ void ˎ(aux o_aux, Object obj) throws IOException {
        ˋ(o_aux, (Time) obj);
    }

    public /* synthetic */ Object ˏ(auy o_auy) throws IOException {
        return ˋ(o_auy);
    }

    public synchronized Time ˋ(auy o_auy) throws IOException {
        Time time;
        if (o_auy.ʻ() == auz.NULL) {
            o_auy.ॱॱ();
            time = null;
        } else {
            try {
                time = new Time(this.ॱ.parse(o_auy.ʽ()).getTime());
            } catch (Throwable e) {
                throw new JsonSyntaxException(e);
            }
        }
        return time;
    }

    public synchronized void ˋ(aux o_aux, Time time) throws IOException {
        o_aux.ˊ(time == null ? null : this.ॱ.format(time));
    }
}
